﻿#ifndef TOOLBARSEMIAUTOMEASURE_H
#define TOOLBARSEMIAUTOMEASURE_H
#include "MeasureView_global.h"
#include <QToolBar>

namespace Qly
{
class MeasureView;
class MEASUREVIEW_EXPORT ToolBarSemiAutoMeasure : public QToolBar
{
    Q_OBJECT
public:
    ToolBarSemiAutoMeasure(const QString &title, QWidget *parent = Q_NULLPTR);
    ToolBarSemiAutoMeasure(QWidget *parent = Q_NULLPTR);
    void attach(MeasureView *widget);
    void attach(QMenu * pMenu);
public slots:
    void uncheckAll();
signals:
    void checked();
    void showSetupDialog();
private:
    void initAction();

private slots:
    void upateDrawType(bool on);
public:
    QActionGroup *actionGroup;
    QAction *actionParallel;
    QAction *actionOuterCircle;
    QAction *actionInnerCircle;

    QAction *actionSetup;
    MeasureView *pMeasure;
};

}

#endif // TOOLBARSEMIAUTOMEASURE_H
